<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: 86158
  Date: 2022/2/26
  Time: 22:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>CoolMeeting会议管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/styles/common.css"/>
</head>
<body>
<div class="page-header">
    <div class="header-banner">
        <img src="${pageContext.request.contextPath}/images/header.png" alt="CoolMeeting"/>
    </div>
    <div class="header-title">
        欢迎访问Cool-Meeting会议管理系统
    </div>
    <div class="header-quicklink">
        欢迎您，<strong>${sessionScope.currentuser.employeename}</strong>
        <a href="${pageContext.request.contextPath}/changepassword">[修改密码]</a>
    </div>
</div>
<div class="page-body">
    <div class="page-sidebar">
        <div class="sidebar-menugroup">
            <jsp:include page="leftMenu.jsp" flush="true"></jsp:include>
        </div>
    </div>
    <div class="page-content">
        <div class="content-nav">
            个人中心 > <a href="notifications">最新通知</a>
        </div>
        <table class="listtable">
            <caption>
                未来7天我要参加的会议:
            </caption>
            <tr class="listheader">
                <th style="width:300px">会议名称</th>
                <th>会议室</th>
                <th>起始时间</th>
                <th>结束时间</th>
                <th style="width:100px">操作</th>
            </tr>
            <tr>
                <td>三季度销售总结会</td>
                <td>第一会议室</td>
                <td>2013-11-20 9：00</td>
                <td>2013-11-20 11：00</td>
                <td>
                    <a class="clickbutton" href="meetingdetails.html">查看详情</a>
                </td>
            </tr>
            <tr>
                <td>与Google合作推广Android技术培训会议</td>
                <td>第三会议室</td>
                <td>2013-11-18 9：00</td>
                <td>2013-11-18 11：00</td>
                <td>
                    <a class="clickbutton" href="meetingdetails.html">查看详情</a>
                </td>
            </tr>
            <tr>
                <td>员工例行面谈</td>
                <td>小会议室</td>
                <td>2013-11-16 16：00</td>
                <td>2013-11-16 17：00</td>
                <td>
                    <a class="clickbutton" href="meetingdetails.html">查看详情</a>
                </td>
            </tr>
        </table>
        <table class="listtable">
            <caption>
                已取消的会议:
            </caption>
            <tr class="listheader">
                <th style="width:300px">会议名称</th>
                <th>会议室</th>
                <th>起始时间</th>
                <th>结束时间</th>
                <th>取消原因</th>
                <th style="width:100px">操作</th>
            </tr>
            <c:forEach items="${meeting}" var="meet">
                <tr>
                    <td>${meet.meetingname}</td>
                    <td>${meet.meetingRoom.roomname}</td>
                    <td><fmt:formatDate value="${meet.starttime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                    <td><fmt:formatDate value="${meet.endtime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                    <td>${meet.description}</td>
                    <td>
                        <a class="clickbutton" href="${pageContext.request.contextPath}/meetingdetails/${meet.meetingid}">查看详情</a>
                    </td>
                </tr>
            </c:forEach>

        </table>

    </div>
</div>
<div class="page-footer">
    <hr/>
    更多问题，欢迎联系<a href="mailto:webmaster@eeg.com">管理员</a>
    <img src="${pageContext.request.contextPath}/images/footer.png" alt="CoolMeeting"/>
</div>
</body>
</html>
